Decoupled Django by Valentino Gagliardi

Decoupled Django by Valentino Gagliardi

Author:Valentino Gagliardi
Language: eng
Format: epub
ISBN: 9781484271445
Publisher: Apress


This will build the optimized Vue.js bundle in static/billing. We now need to push these files to the Git repo. After doing so, in the next section we finally see how to deploy the project starting right from this repo.

Note

In real-world projects, production JavaScript bundles are not directly pushed to source control. Instead, a continuous integration/deployment system takes care of building production assets, or Docker images, after all the test suites pass.

The Deployment

After building Vue for production locally and committing the files to the repo, we need to deploy the actual code to the target machine.

To do so, we log in as the unprivileged user created in the previous steps (the Ansible playbook defines a user called decoupled-django) or with SSH. Once done, we clone the repo to a folder, which can be called code for convenience:git clone --branch chapter_07_security_deployment https://github.com/valentinogagliardi/decoupled-dj.git code



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.